﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace IntegradorMod
{
    public partial class Pesq_Usuario : Form
    {
        public Pesq_Usuario()
        {
            InitializeComponent();
        }

        private void pictureBox2_Click(object sender, EventArgs e)
        {

        }

        private void label2_Click(object sender, EventArgs e)
        {

        }

        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {

        }

        private void Pesq_Usuario_Load(object sender, EventArgs e)
        {
            
            Arquivo outro = new Arquivo();
            outro.Diretorio = "c:\\txtproj";
            outro.Nome = "Usuario.txt";
            outro.LeTexto();
            string linha = outro.Texto;
            int nStart = 0;
            int nPos1 = linha.IndexOf(";");
            string str1 = linha.Substring(nStart, nPos1);
            Console.WriteLine(str1);


        }
    }
}
